package com.hx.ycy.web.websocket;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by hx-pc on 17-2-14.
 */
public interface ChatBarStyleOfImgHeader {

    default List<String> getImgHeader() {
        List<String> list = new ArrayList<>(20);
        String fileRootDir = Thread.currentThread().getContextClassLoader().getResource("").getPath() ;
        File files = new File(fileRootDir + "images/header");
        for (String fileName : files.list()) {
            list.add("/images/header/" + fileName);
        }
        return list;
    }

}
